﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KillBill.Business.Entities;
using KillBill.Common.Security;

namespace KillBill.Presentation.Common
{
    public static class Context
    {
        private static Session _session;
        public static Session Session
        {
            get
            {
                if (_session != null)
                {
                    return _session;
                }
                return null;
            }
            set
            {
                _session = value;
            }
        }

        public static string SessionID
        {
            get {
                return Session != null ? Session.SessionId : null;
            }
        }

        public static string EmployeeID
        {
            get {
                return Session.Employee != null ? Session.Employee.EmployeeID : null;
            }
        }
    }
}
